CC=latex
CB=bibtex
CPS=dvips
CPDF=ps2pdf


NAME=memoire
TEX=$(NAME).tex
PDF=$(NAME).pdf
PS=$(NAME).ps
DVI=$(NAME).dvi
AUX=$(NAME).aux

all:
	$(CC) $(TEX)
	$(CB) $(AUX)
	$(CC) $(TEX)
	$(CC) $(TEX)
	$(CPS) $(DVI)
	$(CPDF) $(PS) $(PDF)

man:
	pdflatex manuel.tex
	pdflatex manuel.tex


.PHONY:clean
clean:
	rm -f *.aux *.bbl *.blg *.dvi *.idx *.log *.toc *.out *.ps *.dvi
pclean: clean
	rm -f *.pdf
